//
//  LCLoginViewController.m
//  LendCash
//
//  Created by Mac mini on 2018/5/23.
//  Copyright © 2018年 zt. All rights reserved.
//

#import "LCLoginViewController.h"
#import "LCRegistViewController.h"
#import "LCForgetPsdViewController.h"
#import "LCTabBarViewController.h"
@interface LCLoginViewController ()
@property (strong, nonatomic) IBOutlet UIView *view1;
@property (strong, nonatomic) IBOutlet UIView *view2;
@property(nonatomic,strong)UINavigationController *nav;
@end

@implementation LCLoginViewController

-(void)viewDidLayoutSubviews{
    _view1.layer.borderColor= _view2.layer.borderColor = [UIColor lightGrayColor].CGColor;
    _view1.backgroundColor = _view2.backgroundColor = [UIColor whiteColor];
}

-(void)viewWillAppear:(BOOL)animated{
    self.navigationController.navigationBar.hidden = YES;
}

- (void)viewDidLoad {
    [super viewDidLoad];

    
}
- (IBAction)loginClick:(id)sender {
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    LCTabBarViewController *tab = [storyboard instantiateViewControllerWithIdentifier:@"TabBar"];
    [self presentViewController:tab animated:YES completion:nil];
    
}
- (IBAction)registClick:(id)sender {

    LCRegistViewController *regist = [[LCRegistViewController alloc]initWithNibName:@"LCRegistViewController" bundle:nil];
    self.navigationController.navigationBar.hidden = NO;

    [self.navigationController pushViewController:regist animated:YES];
}
- (IBAction)forgetClick:(id)sender {
    LCForgetPsdViewController *regist = [[LCForgetPsdViewController alloc]initWithNibName:@"LCForgetPsdViewController" bundle:nil];
    self.navigationController.navigationBar.hidden = NO;
    
    [self.navigationController pushViewController:regist animated:YES];
}

-(void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
